<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div id="app">
        <form action="###">
            <!-- 下拉列表单选是data也是用字符串保存 -->
            请选择你喜欢的城市：
            <select name="city" v-model="city">
                <option value="北京">北京</option>
                <option value="上海">上海</option>
                <option value="广州">广州</option>
                <option value="深圳">深圳</option>
                <option value="武汉">武汉</option>
            </select>
            <!-- 下拉列表多选是data用[]保存 -->
            <select name="food" v-model="food" multiple>
                <option value="北京">北京</option>
                <option value="上海">上海</option>
                <option value="广州">广州</option>
                <option value="深圳">深圳</option>
                <option value="武汉">武汉</option>
            </select>
        </form>
    </div>

    <script>
        Vue.config.prodactionTip = false

        const vm = new Vue({
            el: "#app",
            data() {
                return {
                    city: "深圳",
                    food: []
                }
            }
        })
    </script>
</body>

</html>